<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link rel="shortcut icon" href="/asserts/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/asserts/css/myInfo.css">
<head th:replace="common/main_layout::head">
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!--导航栏-->
    <header th:replace="~{common/main_layout::header(active='myInfo')}"></header>

    <div class="myInfo-body layui-container padding">
        <h2 class="edit-title" style="color: #009688;margin-left: 20px;
    margin-top: 5px;">个人信息</h2><hr/>
        <form class="layui-form layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">用户ID</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.userId}" name="username" placeholder="昵称" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.userName}" name="username" placeholder="昵称" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.getPhone()}" name="username" placeholder="昵称" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">真实姓名</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.getRealName()}" name="username" placeholder="昵称" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">积分数量</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.getIntegral()}" name="username" placeholder="昵称" class="layui-input" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-inline">
                    <input type="text" readonly th:value="${session.user.getAddress()}" name="username" placeholder="昵称" class="layui-input" lay-verify="required" style="width: 500px">
                </div>
            </div>
        </form>
        <button class="layui-btn" type="button" onclick="javascript:window.location.href='/edit'">修改信息</button>
    </div>
    <!--页尾-->
    <footer th:replace="common/main_layout::footer"></footer>
    <script th:src="@{/asserts/layui/layui.js}"></script>
    <script>
        layui.use('element', function () {
        var element = layui.element;
    });
    </script>
</div>
</body>
</html>